/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package my.test;

import java.util.List;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;
import my.test.HelloWorld;
/**
 *
 * @author cloud
 */
@WebService(serviceName = "WSSpike4")
@Stateless()
public class WSSpike4 {

    /**
     * This is a sample web service operation
     */
    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "testWebService")
    public List<String> testWebService() {
        //TODO write your implementation code here:
        HelloWorld hw = new HelloWorld();
        //hw.accessDB();
        return hw.accessDB();
    }
    
    
}
